import request from '@/utils/request'
// 登录封装
export const login = data => {
  return request.post('/manager/login', data)
}
// 验证码封装
export const verification = params => {
  return request.get(`/manager/captcha?key=${params}`, { responseType: 'arraybuffer' })
}

// 封装随机4位数
export const randomNum = () => {
  const min = 1000
  const max = 9999
  return Math.floor(Math.random() * (max - min + 1)) + min
}
